package com.fary.context;

import com.fary.core.SpringException;

import java.util.Locale;

public interface MessageSource {

    String getMessage(String code, Object[] args, String defaultMessage, Locale locale);

    String getMessage(String code, Object[] args, Locale locale) throws SpringException;

    String getMessage(MessageSourceResolvable resolvable, Locale locale) throws SpringException;

}